package com.spring.boot.demo.property;

import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/10/14 12:26
 * @Description 读取配置文件属性
 */
@Component // 将当前类交给IOC容器
// 指定要读取的配置文件路径
//@PropertySource(value = {"classpath:custom.properties"})
public class ThirdProperty {

    private String name;

    private String password;

    private String[] hobby;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }
}
